<div class="bjui-pageContent">
<form action="{:U('Order/editHandle')}" method="post" data-toggle="validate">
    <table class="table table-bordered table-hover table-striped table-top">
        <tr><td>订单编号：</td><td>{$order.ordid}</td></tr>

        <if condition="substr($order['ordid'],0,2) eq 'sp'">
            <tr><td>单价：</td><td>{$order.ordprice}</td></tr>
            <tr><td>数量：</td><td><input type="text" name="ordbuynum" id="ordbuynum" value="{$order.ordbuynum}" data-rule="required;digits"></td></tr>
        </if>
        <if condition="substr($order['ordid'],0,2) eq 'sp'">
            <tr><td>总额：</td><td>{$order.ordfee}</td></tr>
        <else/>
            <tr><td>充值总额：</td><td><input type="text" name="ordfee" id="ordfee" value="{$order.ordfee}" data-rule="required;number" data-tip="请填写充值总额" data-ok="OK"  placeholder="充值总额"></td></tr>
        </if>

        <if condition="substr($order['ordid'],0,2) eq 'sp'">
            <tr><td>收货人：</td><td><input type="text" name="getname" id="getname" value="{$order.getname}" data-rule="required" data-tip="请填写收货人" data-ok="OK" placeholder="收货人"></td></tr>
            <tr><td>收货地址：</td><td><input type="text" name="shouhuo" id="shouhuo" value="{$order.shouhuo}" data-rule="required" data-tip="收货地址" data-ok="OK" placeholder="收货地址"></td></tr>
            <tr><td>邮政编码：</td><td><input type="text" name="youbian" id="youbian" value="{$order.youbian}"  data-rule="required;digits" data-tip="邮政编码" data-ok="OK" placeholder="邮政编码"></td></tr>
            <tr><td>联系电话：</td><td><input type="text" name="phone" id="phone" value="{$order.phone}"  data-rule="required" data-tip="联系电话" data-ok="OK" placeholder="联系电话"></td></tr>
            <tr><td>备注：</td><td><textarea name="beizhu" id="beizhu">{$order.beizhu}</textarea></td></tr>
        </if>
        <input type="hidden" id="ordid" name="ordid" value="{$order.ordid}">
 
    </table>
</form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
                <li><button data-icon="save" class="btn btn-default" type="submit">保存</button></li>
    </ul>
</div>